package com.xxxcompany.world.dao;

import java.sql.SQLException;
import java.util.List;

import com.xxxcompany.world.entity.City;
import com.xxxcompany.world.entity.Country;

public interface IWorldDAO {
	//* 查询所有国家
	List<Country> findAllCountry() throws SQLException;
	//* 查询所有城市
	List<City> findAllCity() throws SQLException;
	//* 根据国家名称查询国家
	Country findCountry(String countryname) throws SQLException;
	//* 根据国家名称查询这个国家有哪些城市
	List<City> findCountryCity(String countryname) throws SQLException;
}
